package com.reader.cms.entity.content;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * @author gumenghao
 * @@description
 * @date 2018-11-02
 */
@TableName("reader_picture_content")
public class ReaderPictureContent extends Model<ReaderPictureContent> {

    private static final long serialVersionUID = 1L;


    /**
     * ID
     */


    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 标题
     */


    private String title;

    /**
     * 作者
     */


    private String author;

    /**
     * 来源
     */


    private String origin;

    /**
     * 封面图片
     */


    private String cover;

    /**
     * 关联内容分类表
     */

    @TableField("content_classify")

    private Integer contentClassify;

    /**
     * 描述摘要
     */


    private String introduction;

    /**
     * 是否置顶
     */

    @TableField("is_to_top")

    private Integer isToTop;

    /**
     * 置顶序号
     */

    @TableField("top_num")

    private Integer topNum;

    /**
     * 是否编辑推荐
     */

    @TableField("is_edit_recom")

    private Integer isEditRecom;

    /**
     * 编辑推荐序号
     */

    @TableField("edit_recom_num")

    private Integer editRecomNum;

    /**
     * 发布时间
     */

    @TableField("publish_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishDt;

    /**
     * 公共代码：CONT_STAT内容状态
     */


    private String state;


    private Integer enable;


    @TableField("del_flag")

    private Integer delFlag;


    @TableField("insert_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date insertDt;


    @TableField("insert_user_id")

    private Integer insertUserId;


    @TableField("updt_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updtDt;


    @TableField("updt_user_id")

    private Integer updtUserId;

    @TableField(exist = false)
    private String stateNm;

    @TableField(exist = false)
    private String createNm;

    @TableField(exist = false)
    private Integer likeNum;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public Integer getContentClassify() {
        return contentClassify;
    }

    public void setContentClassify(Integer contentClassify) {
        this.contentClassify = contentClassify;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Integer getIsToTop() {
        return isToTop;
    }

    public void setIsToTop(Integer isToTop) {
        this.isToTop = isToTop;
    }

    public Integer getTopNum() {
        return topNum;
    }

    public void setTopNum(Integer topNum) {
        this.topNum = topNum;
    }

    public Integer getIsEditRecom() {
        return isEditRecom;
    }

    public void setIsEditRecom(Integer isEditRecom) {
        this.isEditRecom = isEditRecom;
    }

    public Integer getEditRecomNum() {
        return editRecomNum;
    }

    public void setEditRecomNum(Integer editRecomNum) {
        this.editRecomNum = editRecomNum;
    }

    public Date getPublishDt() {
        return publishDt;
    }

    public void setPublishDt(Date publishDt) {
        this.publishDt = publishDt;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Date getInsertDt() {
        return insertDt;
    }

    public void setInsertDt(Date insertDt) {
        this.insertDt = insertDt;
    }

    public Integer getInsertUserId() {
        return insertUserId;
    }

    public void setInsertUserId(Integer insertUserId) {
        this.insertUserId = insertUserId;
    }

    public Date getUpdtDt() {
        return updtDt;
    }

    public void setUpdtDt(Date updtDt) {
        this.updtDt = updtDt;
    }

    public Integer getUpdtUserId() {
        return updtUserId;
    }

    public void setUpdtUserId(Integer updtUserId) {
        this.updtUserId = updtUserId;
    }

    public String getStateNm() {
        return stateNm;
    }

    public void setStateNm(String stateNm) {
        this.stateNm = stateNm;
    }

    public String getCreateNm() {
        return createNm;
    }

    public void setCreateNm(String createNm) {
        this.createNm = createNm;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReaderPictureContent{" +
                ", id=" + id +
                ", title=" + title +
                ", author=" + author +
                ", origin=" + origin +
                ", cover=" + cover +
                ", contentClassify=" + contentClassify +
                ", introduction=" + introduction +
                ", isToTop=" + isToTop +
                ", topNum=" + topNum +
                ", isEditRecom=" + isEditRecom +
                ", editRecomNum=" + editRecomNum +
                ", publishDt=" + publishDt +
                ", state=" + state +
                ", enable=" + enable +
                ", delFlag=" + delFlag +
                ", insertDt=" + insertDt +
                ", insertUserId=" + insertUserId +
                ", updtDt=" + updtDt +
                ", updtUserId=" + updtUserId +
                "}";
    }
}